<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BlockWidget
 *
 * @author Lawrence
 */
Yii::import('application.models.Product');

class BlockWidget extends CWidget{
    
    public function run(){
        $block = Block::model()->findAll(array(
            'condition' => 'status = 1',
            'order' => 'weight'
        ));        
        
        $this->render('BlockWidget', array(
            'block' => $block
        ));
    }
}

?>
